package com.probox.modules.controller.platfom;

import com.probox.common.core.web.controller.BaseController;
import com.probox.common.core.web.domain.AjaxResult;
import com.probox.common.entity.service.platfom.IPlatformPageConfigComponentService;
import com.probox.common.log.annotation.Log;
import com.probox.common.log.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 页面组件信息Controller
 *
 *
 * @date 2021-06-11
 */
@Api(value = "平台模块", tags = {"组件信息前端接口"})
@RestController
@RequestMapping("/platform/component")
public class PlatformPageConfigComponentController extends BaseController {
    @Autowired
    private IPlatformPageConfigComponentService platformPageConfigComponentService;

    /**
     * 新增页面组件信息
     */
    @ApiOperation(value="添加组件")
    @Log(title = "页面组件信息", businessType = BusinessType.INSERT)
    @PostMapping(value = "/add")
    public AjaxResult add() {
        return AjaxResult.success("操作成功",platformPageConfigComponentService.insertPlatformPageConfigComponent());
    }

}
